<template>
    <div class="container">
        <div class="con">
            <yd-cell-group>
                <yd-cell-item>
                    <span slot="left">MT5账号：</span>
                    <span slot="right">{{items.mt5Account}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">邮箱：</span>
                    <span slot="right">{{items.email}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">杠杆：</span>
                    <span slot="right">{{items.leveraged}}</span>
                </yd-cell-item>
                <yd-cell-item>
                    <span slot="left">验证码：</span>
                    <input slot="right" type="number" placeholder="请输入验证码">
                </yd-cell-item>
                <get-code></get-code>
            </yd-cell-group>
        </div>
    </div>
</template>
<script>
    import GetCode from '../common/get-code.vue';
    import AjaxHttp from '../../js/ajaxHttp.js';
    import Tools from '../../js/tools.js';
    export default{
        data: function () {
            return {
                items: ''
            }
        },
        components: {
            GetCode
        },
        created: function () {
            const _this = this;
            AjaxHttp.getHttp('fxsys/mtApply/initPassword?mt5Account=' + Tools.getUrlKey('mt5Account')).then(function (response) {
                console.log(response);
                _this.items = response;
            });
        },
        methods: {}
    }
</script>